<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>home</title>
</head>
<body>
  <h1>Home</h1>
  <hr>

  {# 模板语言的注释 #}
  <h4>name: {{ name }}</h4>
  <h4>age: {{ age }}</h4>
  <h4>likes: {{ likes }}</h4>

  <hr>
  <h5>if语句</h5>
  {% if age > 20 %}
    <p>{{ name }} 20多碎了
  {% elif age > 18 %}
    <p>{{name}} 已经成年了</p>
  {% else %}
    <p>{{name}} 还没有成年</p>
  {% endif %}

  <hr>
  <h5>for 循环</h5>
  {% for like in likes %}
    <p>{{ like }}</p>
  {% endfor %}
</body>
</html>